package cn.dhnapplets.controller;

import cn.dhnapplets.entity.RecoverData;
import cn.dhnapplets.entity.Result;
import cn.dhnapplets.service.QueryRecoveryDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author 邱文彬
 * @Date 2021/12/2 11:10
 * @Version 1.0
 */


@RestController
@RequestMapping("/Function/Data")
public class QueryRecoveryDataController {


    @Autowired
    private QueryRecoveryDataService queryRecoveryDataService;

    @RequestMapping(value = "getAll",method = RequestMethod.GET)
    public Result getAll(){
        List<RecoverData> all = queryRecoveryDataService.getAll();
        return new Result(0,"操作成功",all);
    }

}
